from typing import TYPE_CHECKING

from sqlalchemy.orm import Mapped, relationship

from .base import Base, str_50
#
# if TYPE_CHECKING:
#     from .order import Order
#     from .order_product_association import OrderProductAssociation


class Author(Base):
    __tablename__ = 'authors_new'
    first_name: Mapped[str_50]
    last_name: Mapped[str_50]

    # orders: Mapped[list["Order"]] = relationship(
    #     secondary="order_product_association",
    #     back_populates="products",
    # )
    # orders_details: Mapped[list["OrderProductAssociation"]] = relationship(
    #     back_populates="product",
    # )
    #